IIS

推荐列表 站点导航

当前位置:首页 > 服务器技术 > IIS >

IIS7/IIS8 自动跳转到HTTPS的实现方法

来源:网络整理  作者:fen  发布时间:2020-12-26 04:20
本文主要讲解IIS7/IIS8 自动跳转到HTTPS的实现方法,有需要的朋友可以参考一下。...

如果您已经安装可以跳过 URL重写 模块下载地址 微软下载地址(64位):?id=7435 微软下载地址(32位):?id=5747 第一步: 选择站点, URL 重写,如果安装的是英文版的 应该是【Url Rewrite】 第二步: 添加 空白规则 第三步:添加规则 名称 : HTTPS 匹配URL 模式: (.IT之家) 添加条件: 条件: {HTTPS} 模式: off 操作类型选择: 重定向 重定向URL: https://{HTTP_HOST}/{R:1} 然后保存即可 高级版(直接把伪静态添加到web.config) ?xmlversion= 1.0 encoding= UTF-8 ? configuration system.webServer rewrite rules rulename= HTTPtoHTTPSredirect stopProcessing= true matchurl= (.IT之家) / conditions addinput= {HTTPS} pattern= off ignoreCase= true / /conditions actiontype= Redirect redirectType= Found url= https://{HTTP_HOST}/{R:1} / /rule /rules /rewrite /system.webServer /configuration , IIS7需要先确认是否安装 URL 重写 或者 URL Rewrite 模块 ,。

相关热词:

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://v30.fanwenzhu.com/server/iis/9178.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

IIS7/IIS8 自动跳转到HTTPS的实现方法

2020-12-26 编辑:fen

如果您已经安装可以跳过 URL重写 模块下载地址 微软下载地址(64位):?id=7435 微软下载地址(32位):?id=5747 第一步: 选择站点, URL 重写,如果安装的是英文版的 应该是【Url Rewrite】 第二步: 添加 空白规则 第三步:添加规则 名称 : HTTPS 匹配URL 模式: (.IT之家) 添加条件: 条件: {HTTPS} 模式: off 操作类型选择: 重定向 重定向URL: https://{HTTP_HOST}/{R:1} 然后保存即可 高级版(直接把伪静态添加到web.config) ?xmlversion= 1.0 encoding= UTF-8 ? configuration system.webServer rewrite rules rulename= HTTPtoHTTPSredirect stopProcessing= true matchurl= (.IT之家) / conditions addinput= {HTTPS} pattern= off ignoreCase= true / /conditions actiontype= Redirect redirectType= Found url= https://{HTTP_HOST}/{R:1} / /rule /rules /rewrite /system.webServer /configuration , IIS7需要先确认是否安装 URL 重写 或者 URL Rewrite 模块 ,。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://v30.fanwenzhu.com/server/iis/9178.shtml

相关文章

风云图片

推荐阅读

返回IIS频道首页